<script setup>
const emit = defineEmits(['child-click'])
const childClick = () => {
    emit('child-click')
}
</script>

<template>
    <div>
        <h1>子组件</h1>
        <button @click="$emit('child-click')">点击我</button>
    </div>
</template>